package cn.dcw.pethome.pet.domain;


import cn.dcw.pethome.basic.domain.BaseDomain;
import cn.dcw.pethome.org.domain.Shop;
import cn.dcw.pethome.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BaseDomain {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy/MM/dd",timezone = "GMT+8")
    protected Date offsaletime;//下架时间
    @JsonFormat(pattern = "yyyy/MM/dd",timezone = "GMT+8")
    private Date onsaletime;//上架时间
    private Integer state=0;//0表示下架，1表示上架  默认为下架状态
    private BigDecimal costprice;
    @JsonFormat(pattern = "yyyy/MM/dd",timezone = "GMT+8")
    private Date createtime=new Date();//创建时间
    private Long type_id;
    private PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    private Long search_master_msg_id;

    private PetDetail detail = new PetDetail();

}
